package com.cskaoyan.bean.vo.IssueVO;

import java.util.List;

/**
 * @projectName: seeonproject1
 * @package: com.cskaoyan.bean.vo.IssueVO
 * @className: IssueDataPO
 * @author: YangDongpeng
 * @description:
 * @date: 2022/6/5 22:51
 * @version: 1.0
 */
public class IssueData {
    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<Issue> list;
    public void setTotal(int total) {
        this.total = total;
    }
    public int getTotal() {
        return total;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }
    public int getPages() {
        return pages;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
    public int getLimit() {
        return limit;
    }

    public void setPage(int page) {
        this.page = page;
    }
    public int getPage() {
        return page;
    }

    public void setList(List<Issue> list) {
        this.list = list;
    }
    public List<Issue> getList() {
        return list;
    }
    public static IssueData data(long total, Integer pages, Integer limit, Integer page, List list) {
        IssueData issueData = new IssueData();
        issueData.setTotal((int) total);
        issueData.setPages(pages);
        issueData.setPage(page);
        issueData.setLimit(limit);
        issueData.setList(list);
        return issueData;
    }
}
